package com.example.saiweisi.service.impl.receptionAdminService;

import com.example.saiweisi.controller.request.VipInfoRequest;
import com.example.saiweisi.mapper.ReceptionAdminMapper.VipInfoMapper;
import com.example.saiweisi.model.UserMail;
import com.example.saiweisi.model.WashKind;
import com.example.saiweisi.service.interf.IVipInfoService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VipInfoService implements IVipInfoService {
    @Autowired
    private VipInfoMapper vipInfoMapper;
    @Override
    public PageInfo<UserMail> page(VipInfoRequest vipInfoRequest) {
        PageHelper.startPage(vipInfoRequest.getPageNum(), vipInfoRequest.getPageSize());
        List<UserMail> userMailList = vipInfoMapper.getVipInfo(vipInfoRequest);
        return new PageInfo<>(userMailList);

    }
}
